module.exports = {
    devServer: {
      open:true, //自动开启浏览器
       port:8899, //随便改端口号
       proxy: {
           '/api': {
              target: 'http://127.0.0.1:8899',
              // host: '127.0.0.1:3000',
              changeOrigin:true,
              pathRewrite: {
                '/api': ''
              }
           }
       },
      overlay: {
        warnings: false,
        errors: false
      }
    },
  
    lintOnSave: false,
  
    configureWebpack: {
      resolve: {
        alias: {
          assets: '@/assets',
          com: '@/components',
          views: '@/views'
        }
      }
    },
  
    css: {
      loaderOptions: {
        stylus: {
          'resolve url': true,
          import: [
            './src/theme'
          ]
        }
      }
    },
  
    pluginOptions: {
      'cube-ui': {
        postCompile: true,
        theme: true
      }
    }
  }
  